const requestFailHandler = function (err) {
  return Promise.reject(err)
}

const responseSuccessHandler = function (reponse) {
  return Promise.resolve({ err: null, res: reponse.data })
}

const responseFailHandler = function (err) {
  return Promise.resolve({ err, res: null })
}

export default {
  requestFailHandler,
  responseSuccessHandler,
  responseFailHandler
}
